package com.lm.Decorator;

/**
 * 具体装饰者
 */
public class MyDecorator extends AbstractDecorator{
    public MyDecorator(Shape decorator) {
        super(decorator);
    }

    public void draw(){
        super.draw();
        newFunction();
    }

    public void newFunction(){
        System.out.println("为具体构件新增额外的功能");
    }

}
